package com.xcdh.ittools.service;

import com.alibaba.druid.pool.DruidDataSource;
import com.api.ittools.entity.ITToolPage;
import com.api.ittools.entity.Tables;
import com.api.ittools.entity.TablesColumn;
import com.api.ittools.query.DbQuery;
import com.api.ittools.vo.ElTreeVo;
import com.api.ittools.vo.ToolDatasourceVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.api.ittools.entity.ToolDatasource;
import com.xcdh.domain.RequestPage;

import java.util.List;

public interface ToolDatasourceService extends IService<ToolDatasource> {

    public List<ElTreeVo> queryDbs(ToolDatasource datasource) ;


    public List<ElTreeVo> queryDatabaseList(DbQuery query) ;

    public List<ElTreeVo> queryTableList(DbQuery query) ;

    public List<TablesColumn> queryColumnList(DbQuery query) ;

    public IPage<ToolDatasourceVo> listByPage(RequestPage<ToolDatasource> page) ;

    public Tables getTable(DbQuery query) ;

    public ToolDatasource getById(Long id) ;

}
